import config from '../../utils/config';
import apiCreator from '../../utils/apiCreator';
const api = apiCreator();
export default {
  // 获取基准信息列表
  queryBenchmarkPage: (query) => api.post(`${config.interfaces.type5}portfolio-server/benchmark/queryByPage`, query),
  // 删除基准信息
  deleteBenchmark: (query) => api.get(`${config.interfaces.type5}portfolio-server/benchmark/delete`, query),
  // 新增基准信息
  createBenchmark: (query) => api.post(`${config.interfaces.type5}portfolio-server/benchmark/create`, query),
  // 编辑基准信息
  modifyBenchmark: (query) => api.post(`${config.interfaces.type5}portfolio-server/benchmark/modify`, query),
  // 获取基准构成下拉数据
  benchmarkComponents: (query) => api.get(`${config.interfaces.type5}portfolio-server/benchmark/benchmarkComponents`, query),
  // 当前登录用户信息
  queryCurrent: (query) => api.post(`${config.interfaces.type5}portfolio-server/authentication/getUser`, query),
};
